package yf.mall.vo.down;


import lombok.Data;
import java.util.Date;
import com.alibaba.excel.annotation.*;
import java.io.Serializable;



import yf.mall.entity.AppCourseEntity;
import yf.mall.vo.AppCourseVo;

                                    
/**
 * 课程信息表实体
 * 表名 app_course
 *
 *
 *
 * @date Tue Aug 08 17:01:31 CST 2023
 */
@Data
public class AppCourseDown implements Serializable {
    @ExcelIgnore
    private static final long serialVersionUID = 1L;

                        //课程id
            @ExcelProperty("课程id")
            private Long id;
        
                        //是否热门
            @ExcelProperty("是否热门")
            private Integer hot;
        
                        //课程名称
            @ExcelProperty("课程名称")
            private String title;
        
                        //课程总时长
            @ExcelProperty("课程总时长")
            private Long totalTimes;
        
                        //课程节数
            @ExcelProperty("课程节数")
            private Long courseShotCount;
        
                        //课程分类
            @ExcelProperty("课程分类")
            private Long courseType;
        
                        //IMG-课程封面
            @ExcelProperty("IMG-课程封面")
            private String cover;
        
                        //课程描述
            @ExcelProperty("课程描述")
            private String description;
        
                        //级别名称
            @ExcelProperty("级别名称")
            private Long levelId;
        
    
    public AppCourseDown() {

    }

    public AppCourseDown(AppCourseVo vo) {
        AppCourseEntity entity = vo.getEntity();
                                    this.setId(entity.getId());
            
                                    this.setHot(entity.getHot());
            
                                    this.setTitle(entity.getTitle());
            
                                    this.setTotalTimes(entity.getTotalTimes());
            
                                    this.setCourseShotCount(entity.getCourseShotCount());
            
                                    this.setCourseType(entity.getCourseType());
            
                                    this.setCover(entity.getCover());
            
                                    this.setDescription(entity.getDescription());
            
                                    this.setLevelId(entity.getLevelId());
            
            }


}
